package com.qk.management.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qk.dto.business.BusinessDTO;
import com.qk.dto.business.BusinessPoolDTO;
import com.qk.dto.business.BusinessTrackDTO;
import com.qk.entity.Business;
import com.qk.result.PageResult;
import com.qk.vo.business.BusinessPoolVO;
import com.qk.vo.business.BusinessQueryVO;
import com.qk.vo.business.BusinessVO;

/**
 * @Author:zhengbowen
 * @Date: 2025/10/13 11:49
 * @Description: 商机管理业务逻辑接口
 */
public interface BusinessService extends IService<Business> {

    PageResult<BusinessQueryVO> selectBusinessByPage(BusinessDTO businessDTO);

    PageResult<BusinessPoolVO> selectBusinessPool(BusinessPoolDTO businessPoolDTO);

    void trackBusiness(BusinessTrackDTO businessTrackDTO);

     BusinessVO getBusinessById(Integer id);

    void convertToCustomer(Integer id);

    void backPublicSea(Integer id);

    void updateBusinessById(Integer businessId, Integer userId);

    void insert(Business business);
}
